<?php 

	class CommentsWiget extends CWidget
	{
		public $object;
		public $id_post;
		function run() 
		{			
			$comments=Coments::model()->recently()->findAll("object=:object AND id_post=:id_post",array(":object"=>$this->object,":id_post"=>$this->id_post));
			$this->render("comments",array("comments"=>$comments));
		}
	}
?>